angular.module('mycontrollers', [])
.controller('ContentController',function($scope, $ionicSideMenuDelegate){

	 $scope.toggleLeft = function() {
    $ionicSideMenuDelegate.toggleLeft();
  };
})

.controller('registerCtr',function($scope){
	$scope.username = "";	
	$scope.password = "";	
	$scope.options = "";
	$scope.registh = function()
	{
		options = {
		username : $scope.username,
		password : $scope.password,
		appKey : '370940332#who',
		success : function(result) {
				//注册成功;
				alert("sucess");
		},
		error : function(e) {
				//注册失败;
				alert("err");
		}
	};
	Easemob.im.Helper.registerUser(options);
	}
})